﻿<controls:ChildWindow x:Class="SilverlightPlayground.RFB.Silverlight.Dialogs.ConnectionWindow"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" 
           Title="Connection" Style="{StaticResource CommonDialog}">
    <Grid x:Name="LayoutRoot" Margin="2">
    	<Grid.ColumnDefinitions>
    		<ColumnDefinition Width="0.307*"/>
    		<ColumnDefinition Width="0.517*"/>
    		<ColumnDefinition Width="0.176*"/>
    	</Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="0.319*" />
            <RowDefinition Height="0.681*"/>
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Button x:Name="ConnectButton" Content="Connect" Click="ConnectButton_Click" Height="23" Margin="-30,10,0,0" Grid.Row="2" Grid.Column="2" />
        <TextBlock TextWrapping="Wrap" Text="Host" VerticalAlignment="Center" HorizontalAlignment="Right" Foreground="White"/>
        <TextBlock Grid.Row="1" TextWrapping="Wrap" Text="Password" VerticalAlignment="Center" HorizontalAlignment="Right" Foreground="White"/>
        <TextBox x:Name="txtHost" Grid.Column="1" TextWrapping="Wrap" Margin="5,5,0,5" Width="100"/>
        <PasswordBox x:Name="txtPassword" Grid.Column="1" Grid.Row="1" VerticalAlignment="Bottom" Margin="5,0,0,5" Width="100"/>
        <TextBox x:Name="txtPort" Grid.Column="2" Margin="5,5,0,5" Width="50" Text="5900"/>
    </Grid>
</controls:ChildWindow>